package com.thirteenClassicsServer.designPattern.方法工厂_责任链.chain;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.thirteenClassics.dto.EntryCatalogQueryDTO;

import lombok.extern.slf4j.Slf4j;

/**
 * @author wangzihao10 <wangzihao@kuaishou.com>
 * Created on 2024-08-04
 */
@Slf4j
public class EntryCommonChain extends Chain{

    @Override
    public void entryProcess(EntryCatalogQueryDTO entryCatalogQueryDTO) {
        try {
            log.info("保存过程···");

            if(chain != null){
                chain.entryProcess(entryCatalogQueryDTO);
            }
        }catch (Exception e){
            log.info("保存失败");
        }

    }
}
